Common PowerShell Commands
Getting Windows Version
(Get-WmiObject -class Win32_OperatingSystem).Caption
Get PC Name
hostname
Get Windows Version of a Remote PC
Get-WmiObject win32_computersystem -ComputerName 192.168.161.5 | Select-Object Name
Check for Missing Windows Updates
(New-Object -ComObject Microsoft.Update.Session).CreateupdateSearcher().Search(“IsHidden=0 and IsInstalled=0”).Updates | Select-Object Title